<?php session_start();
//borro cookies
setcookie("kaluname","",time()-3600,"/");
setcookie("kalpword","",time()-3600,"/");

//elimino session
session_destroy();

//variables de servidor para redireccionar
$host  = $_SERVER['HTTP_HOST'];
if ($_SERVER['SERVER_NAME'] == 'localhost'){$uri="/kalender";}else{$uri="";}

// me voy al index
header("Location: http://$host$uri/index.php?accessDenied");	
?>